<?php 
/*
* 首页日志分类
*/
if(!defined('EMLOG_ROOT')) {exit('error!');} 
?>
<?php home_sort_list('最新电影',1,2,3,4,5,6,7);?>
<?php home_sort_list('最新电视剧',8,9,10,0,0,0,0);?>
<?php home_sort_list('最新动漫',11,0,0,0,0,0,0);?>

<div id="middle">
<div id="left">
<div class="othernews">
<div class="listing other_news_listing">
    <div class="header">
      <h1>一周人气推荐</h1>
    </div>
	<?php
		$log_Model = new Log_Model;
		$logs = $log_Model->getLogsForHome("and date>UNIX_TIMESTAMP()-86400*70 and top!='y' ORDER BY `views` DESC", 0, 6);
		foreach($logs as $row){
			$row['title'] = htmlspecialchars(trim($row['title']));
			$row['date'] = gmdate('Y/n/j', $row['date']);?>   
      <div class="left-other-news" >
         <a href="<?php echo Url::log($row['gid']);?>" title="<?php echo $row['title'];?>" target="_blank">
         <img src="<?php logs_thumb($row,'85','69'); ?>" 
		 alt="<?php echo $row['title'];?>" /></a>
           <div class="content">
		   <h4><a href="<?php echo Url::log($row['gid']);?>" title="<?php echo $row['title'];?>" target="_blank"><?php echo $row['title'];?></a></h4> 
		   <span class="date">日期：<?php echo $row['date'];?></span>
		   </div>
      </div>
    <?php }?>
</div>
</div><!-- .othernews closer -->
<br />
</div><!-- #left closer -->
<div id="right-x">
<div id="lt_300x250_widget-3">
   <h3 class="widget-title"><span class="title">不一样的视角</span></h3>
   <div id="ad_300">
    <!-- 广告位：300x250-->
<script type="text/javascript"><!--
google_ad_client = "ca-pub-6188876196041059";
/* 主博客日志页面 */
google_ad_slot = "8616328035";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
	</div>
</div>
</div>
</div><!-- #middle-->

